import request from '@/utils/request'


export function uploadPermission(data) {
    return request({
        url: '/api1/api/addPermission',
        method: 'put',
        data:data
    })
}

export function getPermission(data) {
    return request({
        url: '/api1/api/getPermission',
        method: 'get',
        params:
            {
                current:data.current,
                limit:data.limit,
                searchObj:data.searchObj
            }
    })
}
